﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iOak.Data.Resumes;
using iOak.Domain.Resumes;

namespace iOak.Business.Resumes
{
    public  class ResumeService
    {
        private static readonly ResumeRepository resumeRepository = new ResumeRepository("master");

        public Resume Retrieve(Guid resumeId)
        {
            return resumeRepository.Retrieve(resumeId);
        }

        public void Create(Resume item)
        {
            resumeRepository.Create(item);
        }

        public void Update(Resume item)
        {
            resumeRepository.Update(item);
        }

        public void Delete(Guid resumeId)
        {
            resumeRepository.Delete(resumeId);
        }

        public List<Resume> LoadAll()
        {
           return resumeRepository.LoadAll();
        }
    }
}
